package com.zp.business.service.exam;

import com.zp.business.entity.exam.ExamItem;
import com.zp.business.entity.exam.bo.ExamItemBo;
import com.zp.business.entity.exam.vo.ExamItemVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 检查申请子Service接口
 *
 * @author zhang peng
 * @ date 2024-01-05
 */
public interface IExamItemService {

    /**
     * 查询检查申请子
     */
    ExamItemVo queryById (String id);

    /**
     * 查询检查申请子列表(分页)
     */
    TableDataInfo<ExamItemVo> queryPageList (ExamItemBo bo, PageQuery pageQuery);

    /**
     * 查询检查申请子列表(不分页)
     */
    List<ExamItemVo> queryList (ExamItemBo bo);

    /**
     * 修改检查申请子
     */
    Boolean insertByBo (ExamItemBo bo);

    /**
     * 修改检查申请子
     */
    Boolean updateByBo (ExamItemBo bo);

    /**
     * 校验并批量删除检查申请子信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    /**
     * 批量保存检查明细
     *
     * @param examItemList
     * @return
     */
    List<ExamItem> batchExamItem (List<ExamItem> examItemList);

    Boolean deleteByBo (String examApplyId);

    /**
     * 单个项目退费、撤销退费申请 ：3->申请退费
     *
     * @param id exam_apply 主键
     * @return
     */
//    Boolean refundApplication (String id, String chargeFlag);
}
